﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MediaJukebox;

namespace GSdk.MediaJukeboxPlugin
{
    class MediaJukeboxApplet : IDisposable
    {
        private MediaJukeboxAutomation MediaJukeboxApplication;

        public MediaJukeboxApplet()
        {
            MediaJukeboxApplication = new MediaJukeboxAutomation();
            MediaJukeboxApplication.FireMJEvent += FireMJEventHandler;
        }

        private void FireMJEventHandler(string bstrType, string bstrParam1, string bstrParam2)
        {
            System.Windows.MessageBox.Show("Asd");
        }

        #region Dispose handling
        public void Dispose()
        {
            Dispose(true);
            GC.SuppressFinalize(this);
        }

        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                // Managed resources
            }

            // Unmanaged resources
            try
            {
            }
            catch { }
        }

        ~MediaJukeboxApplet()
        {
            Dispose(false);
        }
        #endregion
    }
}
